package com.turing.post.datasorting.util;

import java.math.BigInteger;
import java.util.Date;

import com.turing.post.organization.util.MerchantFeeSettlementPolicy;
import com.turing.post.util.PCPSApplicationException;

import javax.ejb.Local;
import javax.ejb.Remote;
/**
 * 清分业务实现接口
 * @author YangShuo
 *
 */
@Remote
@Local
public interface InComeSortingBusiness {
	
	/**
	 * 校验某发卡商某日所有商户的结算策略设置是否合法
	 * @param issueCompanyNo
	 * @param trandate
	 * @return ok代表通过其他情况为错误信息
	 */
	
	public String checkMerchantFeeSettlementPolicy(String issueCompanyNo, Date trandate);
	/**
	 * 进行收益清分,指定商户号，清分日期
	 * 
	 * @param merchantno
	 * @param trandate
	 * 
	 */
	public void inComeSort(String merchantno,Date trandate)
			throws PCPSApplicationException;
	
	
	/**
	 * 进行收益追溯
	 * 
	 * @param MerchantFeeSettlementPolicy
	 * @param 追溯当日账务日期
	 * 
	 */
	public BigInteger[] getPastIncome(MerchantFeeSettlementPolicy ms,Date trandate,BigInteger operid) throws PCPSApplicationException;


}
